home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Demos / Bowers Development / AppMaker 2.0b5 / Examples / PowerPlant / Gadgets / CGadgetsDoc.h < prev    next >
Encoding:
Text File  |  1996-03-19  |  1.2 KB  |  57 lines  |  [TEXT/CWIE]

  1. // CGadgetsDoc.h -- document class
  2. // Created 3/19/96 12:49 PM by AppMaker
  3.  
  4. #pragma once
  5.  
  6. #include <LSingleDoc.h>
  7.  
  8. class    CGadgetsData;
  9. class    CButtons;
  10. class    CTabbedPanel;
  11. class    CSliders;
  12. class    CProgressBars;
  13. class    CPallette;
  14.  
  15. //----------
  16. class    CGadgetsDoc : public LSingleDoc {
  17. public:
  18.                         CGadgetsDoc    (LCommander    *inSuper);
  19.     virtual                ~CGadgetsDoc();
  20.  
  21.     virtual void        newFile();
  22.     virtual void        openFile    (FSSpec        *inFileSpec);
  23.  
  24.     virtual void        MakeWindows();
  25.  
  26.     virtual Boolean        IsModified();
  27.  
  28.     virtual void        DoAESave    (FSSpec        &inFileSpec,
  29.                                      OSType        inFileType);
  30.     virtual void        DoSave();
  31.     virtual void        DoRevert();
  32.     virtual void        DoPrint();
  33.  
  34.     virtual Boolean        ObeyCommand            (CommandT    inCommand,
  35.                                              void        *ioParam = nil);
  36.     virtual void        FindCommandStatus    (CommandT    inCommand,
  37.                                              Boolean    &outEnabled,
  38.                                              Boolean    &outUsesMark,
  39.                                              Char16        &outMark,
  40.                                              Str255        outName);
  41.  
  42. protected:
  43.     virtual void        DoInvokeAbout();
  44.     virtual void        ObeyAboutDialog        (void*    ioParam);
  45.  
  46. protected:
  47.     virtual void        NameNewDoc();
  48.  
  49. protected:
  50.     CGadgetsData        *mData;
  51.     CButtons        *mButtons;
  52.     CTabbedPanel        *mTabbedPanel;
  53.     CSliders        *mSliders;
  54.     CProgressBars        *mProgressBars;
  55.     CPallette        *mPallette;
  56. };
  57.